package com.shuimo.emoswxapi.wx.service;

import com.shuimo.emoswxapi.wx.db.entity.TbUser;

import java.util.Set;

public interface UserService {

    /**
     * 注册
     *
     * @param registerCode
     * @param code
     * @param nickname
     * @param photo
     * @return
     */
    TbUser registerUser(String registerCode, String code, String nickname, String photo);

    /**
     * 查询用户权限
     *
     * @param id
     * @return
     */
    Set<String> searchUserPermissions(Integer id);
}
